<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="add">
    标题： <input type="text" name="title"><br>
    分类:<select name="typeId">
    <option th:each="g : ${gtlist}" th:value="${g.id}" th:text="${g.name}">name</option>
</select><br>
    状态:

    <input type="radio" name="state" value="1">上架
    <input type="radio" name="state" value="2">下架
    <br>
    <button type="submit">添加</button>
</form>
</body>
</html>